import Vue from 'vue'
import App from './App.vue'

import './assets/style/global.css'
import './assets/style/reset.css'
import router from './routers'
import store from "./stores"

//频道数据一开始就需要获取
store.dispatch("channels/fetchDatas")
store.dispatch("loginUser/whoAmI");

new Vue({
  render: h => h(App),
  router,//配置路由对象到实例中
  store,
}).$mount('#app')
